import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'

class VoteMain extends PureComponent {
    static defaultProps = {
        upNum: 0,
        downNum: 0
    }
    render () {
        return (
            <div>
                <p>支持人数:{this.props.upNum}</p>
                <p>反对人数:{this.props.downNum}</p>
            </div>
        );
    }
}

VoteMain.propTypes = {
    upNum: PropTypes.number,
    downNum: PropTypes.number
}
export default VoteMain;